CROSS =/home/topeet/source_code/rk356x_linux/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-

CC = $(CROSS)gcc  
CXX = $(CROSS)g++  

RM = rm -rf  
  
SRCS = $(wildcard ./*.c)
OBJS = $(patsubst %.c, %.o, $(SRCS))


HEADER_PATH = -I/home/topeet/source_code/rk356x_linux/png_install/include -I/home/topeet/source_code/rk356x_linux/zlib_install/include
LIB_PATH = -L/home/topeet/source_code/rk356x_linux/png_install/lib -L/home/topeet/source_code/rk356x_linux/zlib_install/lib
LIBS = -lpng -lz
  


VERSION = 1.0.0.1  
TARGET = png_test 

$(TARGET):$(OBJS)
	$(CC) -o $@ $^  $(LIB_PATH) $(LIBS)
$(OBJS):$(SRCS)
	$(CC) -o $@ -c $^  $(HEADER_PATH)
clean:
	$(RM) $(TARGET) *.o





